package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 工位-总成表 set_line
 *
 * @author ruoyi
 */
@Data
@Entity
@Table(name = "set_line_product")
@EqualsAndHashCode(callSuper = true)
@TableName(value = "set_line_product")
@ApiModel(description = "工位-总成表")
public class SetLineProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 产线编码 */
    @ApiModelProperty(value = "产线编码")
    @Excel(name = "产线编码")
    private String lineCode;

    /** 工位编码 */
    @ApiModelProperty(value = "工位编码")
    @Excel(name = "工位编码")
    private String stationCode;

    /** 总成编码 */
    @ApiModelProperty(value = "总成编码")
    @Excel(name = "总成编码")
    private String productCode;

    /** 打印ID */
    @ApiModelProperty(value = "打印ID")
    @Excel(name = "打印ID")
    private Integer printId;

    /** 打印数量 */
    @ApiModelProperty(value = "打印数量")
    @Excel(name = "打印数量")
    private Integer printNum;

    /** 条形码类型 */
    @ApiModelProperty(value = "条形码类型")
    @Excel(name = "条形码类型")
    private Integer barcodeType;

    /** 工位-总成状态（0正常 1关闭） */
    @ApiModelProperty(value = "工位-总成状态")
    private String status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("lineCode", getLineCode())
                .append("stationCode", getStationCode())
                .append("productCode", getProductCode())
                .append("printId", getPrintId())
                .append("printNum", getPrintNum())
                .append("barcodeType", getBarcodeType())
                .append("status",getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
